f = open('D:\数据分析师(DA)\全民一起玩PythonDemo\class14.txt','r')

# 应该是一个list
# print(type(p))
p = f.readlines()
print(p)

i = 0

for s in p:

    if '我' in s:

        i = i + 1

print('文中共出现', i, '个"我"')

f.close()
